package leetcode_周赛._2021._202107._20210718;

/**
 * @author yzh
 * @version 1.0
 * @date 2021/7/18 10:36
 * 可以输入的最大单词数
 * 算法：字符串
 */
public class _5161 {

    public int canBeTypedWords(String text, String brokenLetters) {
        String[] split = text.split(" ");
        int ans = 0;
        for (int i = 0; i < split.length; i++) {
            int j = 0;
            for (; j < brokenLetters.length(); j++) {
                if (split[i].contains(brokenLetters.charAt(j) + "")) break;
            }
            if (j == brokenLetters.length()) ++ans;
        }
        return ans;
    }

}
